#include"string.h"
namespace zhao
{
	void string_test1()
	{
		string s1("hello");

		string s2("world");
		

		s2 = s1;

		s2.push_back('c');
		s2.push_back('c');
		s2.push_back('c');
		s2.push_back('c');
		s2.push_back('c');

		for (int i = 0; i < s2.size(); i++)
		{
			cout << s2[i];
		}
	}

	void string_test2()
	{
		string s2("hello world");
		/*s2.push_back('s');

		s2.push_back('w');*/
		/*s2.append("ssyyy");
		s2 += "aaaaaaa";
		for (int i = 0; i < s2.size(); i++)
		{
			cout << s2[i];
		}*/

		s2.insert(6, "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh");

		for (int i = 0; i < s2.size(); i++)
		{
			cout << s2[i];
		}
	}
}
int main()
{
	zhao::string_test2();

	return 0;
}
